<?php
class Blog extends Controller {

	function index()
	{
		$this->load->helper('url');
		$data['todo_list'] = array('Clean House', 'Call Mom', 'Run Errands');

		$data['title'] = "My Real Title";
		$data['heading'] = "My Real Heading";
		
        $this->load->model('Blogmodel', 'Blog');

        $data['entries'] = $this->Blog->get_last_ten_entries();
		
		$this->load->view('blog', $data);
	}
}
?>